﻿using Basic.FlowRemoteModel.Flow.Model;
using WeDonekRpc.Client;
using WeDonekRpc.HttpApiGateway.Model;

namespace Basic.FlowGatewayModule.Interface
{
    public interface IFlowService
    {
        FlowChildren GetChildren ( long id );
        long Add ( FlowAdd data );
        void Delete ( long id );
        FlowDto Get ( long id );
        PagingResult<FlowData> Query ( PagingParam<FlowQueryParam> param );
        bool Set ( long id, FlowSet data );
        string GetName ( long id );
        EnableFlowResult Enable(long id);
        bool Stop(long id);
        EnableFlowResult Check(long id);
        FlowFormDto[] GetForms ( long id );
        long[] GetFormId ( long id );
        long Copy ( FlowCopy param, long v );
    }
}